package fun.chutianshu;

public class Main {

    public static void main(String[] args) {
	// write your code here
        /*
        Person ming = new Person("Xiao Ming", 12);
        ming.print();
        Person hong = new Person("Xiao Hong", 15);
        hong.print();
        Person bai = new Person("Xiao bai", 18);
        bai.print();
        Person hei = new Person("Xiao hei", 13);
        hei.print();
        System.out.println("Person类当前应用中，一共创建了"+Person.number+"个对象");

         */
        //5-15
        //int a =(int)(Math.random()*(15-5+1)+5);
        Person lxy = new Person("李逍遥", 18,50,10);
        for(int i = 1 ;i<=100;i++)
        {
            System.out.println("第"+i+"次：");
            //System.out.println(String.valueOf((int)(Math.random()*10+1)));
            lxy.attack();
        }
    }
}
